<?php global $config;?>
<div id="callback-jcontainer"></div>
<div class="popup_heading">Call me <strong>back</strong></div>
<?php $this->headScript()->appendFile($config->JS_PATH . 'jquery.validate.min.js'); ?>
<?php $this->headScript()->appendFile($config->JS_PATH . 'callback.js'); ?>
<p>Fields marked with (<span class="red">*</span>) are mandatory</p>

	    <?php if(count($this->errorMessage) > 0):?>
		<div class="contact-error">
		<?php foreach($this->errorMessage as $erroValue):?>
		    <?php foreach($erroValue as $_value):?>
			<p><?php echo $_value;?></p>
		    <?php endforeach;?>
		<?php endforeach;?>
		</div>
	    <?php endif; ?>


	    <?php if($this->succesMeessage != ""):?>
		<div class="contact-success">
		    <p><?php echo $this->succesMeessage; ?></p>
		</div>
	    <?php else: ?>
			
            <form  action="<?php echo $this->url(array('controller'=>'index','action'=>'callback'), null, TRUE);  ?>" method="post" id="popup-form" class="popup-form">
              <div class="left leftwidth">
                <label for="name">Name <span class="red">*</span></label>
		<?php echo $this->form->name; ?>
              </div>
	      <div class="left leftwidth">
                <label for="company">Company </label>
		<?php echo $this->form->company; ?>
              </div>
              <div class="left leftwidth">
                <label for="email">E-mail <span class="red">*</span></label>
		<?php echo $this->form->email; ?>
              </div>
			  
			  <div class="left leftwidth">
				  <label for="phone">Contact Number <span class="red">*</span></label>
			 	 <?php echo $this->form->phone; ?>
			</div>
			
			<div class="left leftwidth">
			  <label for="captcha">Captcha Code</label>
			  <?php echo $this->recaptcha->getHTML(); ?>
		 	 </div>
			 <div class="clear"></div>

              <?php echo $this->form->SEND; ?>
              
            </form>

	    <?php endif; ?>
